home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
007
/
chasm407.arc
/
CHMOD.DOC
< prev
next >
Wrap
Text File
|
1986-01-02
|
2KB
|
48 lines
CHMOD
Command
----------------------------------------------------------------
Purpose: Displays or modifies the attributes of the specified
file.
Format: CHMOD [d:][path] filename[.ext] [/n][/r][/h][/s]
Type: Internal External
***
Remarks: The specified file's attributes are modified according
to the specified options:
/N Normal
/R Read-only
/H Hidden
/S System
Multiple options may be specified. /N will cancel any
options preceding it on the command line.
If no options are specified, a report of the file's
current attributes is sent to the standard output.
Upon exit, CHMOD sets ERRORLEVEL according to the
file's current (updated) attributes, and/or the success
of the operation:
Normal file ==> 0
Read-only file ==> 1
Hidden file ==> 2
System file ==> 4
Failed operation ==> 8
The only documented way to generate the "failed
operation" error is to specify a non-existant file.
CHMOD requires DOS 2.0, and will abort under earlier
versions.
Author: David Whitman
P.O. Box 1157
North Wales, PA 19454
This program is in the public domain.